home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
cxl50.arc
/
CXLEMS.H
< prev
next >
Wrap
Text File
|
1989-07-11
|
2KB
|
51 lines
/*
┌──────────────────────────────────────────────────────────────────────────┐
│ │
│ CXLEMS.H - CXL is Copyright (c) 1987-1989 by Mike Smedley. │
│ │
│ This header file contains prototypes of CXL's Expanded Memory │
│ Specification (EMS) functions. │
│ │
└──────────────────────────────────────────────────────────────────────────┘
*/
#if defined(__TURBOC__) /* Turbo C */
#if __STDC__
#define _Cdecl
#else
#define _Cdecl cdecl
#endif
#define _Near
#elif defined(__ZTC__) /* Zortech C++ */
#define _Cdecl
#define _Near
#elif defined(M_I86) && !defined(__ZTC__) /* Microsoft C/QuickC */
#if !defined(NO_EXT_KEYS)
#define _Cdecl cdecl
#define _Near near
#else
#define _Cdecl
#define _Near
#endif
#elif defined(__POWERC__) /* Power C */
#define _Cdecl
#define _Near
#endif
/*---------------------------[ function prototypes ]-------------------------*/
#if !defined(MK_FP)
#define MK_FP(seg,ofs) ((void far *) (((unsigned long)(seg) << 16) | \
(unsigned)(ofs)))
#endif
int _Cdecl emsalloc(int numpages);
int _Cdecl emsdealloc(int emmhandle);
int _Cdecl emsexist(void);
unsigned _Cdecl emsframe(void);
unsigned _Cdecl emsfree(void);
int _Cdecl emsmap(int emmhandle,int logpage,int phypage);
int _Cdecl emsread(char *dest,unsigned emsofs,unsigned numbytes);
unsigned _Cdecl emstotal(void);
char *_Cdecl emsver(void);
int _Cdecl emswrite(char *src,unsigned emsofs,unsigned numbytes);